package reesoft.idgenerator;

import reesoft.idgenerator.entity.IdRange;

/**
 * Created by reesoft on 2017-08-28
 */
public class OnlyPartialIdAssignedException extends IdGenerateException
{
    // 分配的序号范围
    private IdRange idRange;

    public OnlyPartialIdAssignedException(IdRange idRange)
    {
        super(IdGeneratorErrorCode.ONLY_PARTIAL_ID_ASSIGNED.getCode(),
                IdGeneratorErrorCode.ONLY_PARTIAL_ID_ASSIGNED.getDesc());

        this.idRange = idRange;
    }

    public IdRange getIdRange()
    {
        return idRange;
    }
}
